package com.example.restaurant.controller.form;

import com.example.restaurant.common.allenum.UserStatus;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
@ApiModel("修改店长模型")
public class PutStorePersonNameForm {
    @NotNull
    @ApiModelProperty("id")
    @Min(1)
    private int id;
    @NotBlank
    @ApiModelProperty("店长名")
    private String username;
    @NotNull
    @ApiModelProperty("店长状态")
    private UserStatus status;
    @NotBlank
    @ApiModelProperty("店长密码")
    private String password;

    @ApiModelProperty("注册时间/不能修改")
    private Date registerTime;

    @ApiModelProperty("联系方式")
    @NotNull
    private long telephone;


}
